﻿using System.Web.Mvc;
using ExampleMvcApplication.Models.Response;
using ExampleMvcApplication.Models.Response.Home;

namespace ExampleMvcApplication.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View(new IndexModel(Request.IsAuthenticated, User.Identity.Name, "Welcome to ASP.NET MVC!"));
        }

        public ActionResult About()
        {
            return View(new MasterModel(Request.IsAuthenticated, User.Identity.Name));
        }
    }
}
